package com.qfmy.webapp.controller.common;

import com.qfmy.common.result.Result;
import com.qfmy.model.vo.common.MemberPackageVo;
import com.qfmy.webapp.service.common.MemberPackageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.webapp.controller.common
 * @date 2025/11/12
 * @description 会员
 */
@RestController
@RequestMapping("/app/memberPackage")
@SuppressWarnings("all")
public class MemberPackageController {

    /**
     * 注入service
     */
    @Autowired
    private MemberPackageService memberPackageService;

    /**
     * 获取会员列表
     */
    @GetMapping("/getMemberPackage")
    public Result<List<MemberPackageVo>> getMemberPackage(){
        List<MemberPackageVo> list = memberPackageService.getMemberPackage();
        return Result.ok(list);
    }

}
